<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        body {
            display: flex;
            width: 100vw;
            min-height: 100vh;
            justify-content: center;
            align-items: center;
            background-color: #222222;
            font-family: 'Courier New', Courier, monospace;
        }

        .box {
            display: grid;
            grid: repeat(2, 1fr)/repeat(2, 1fr);
            gap: 10px;
        }

        .item {
            width: 18em;
            height: 12em;
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content:center;
            align-items:center;
        }

        .item>img {
            position: absolute;
            width: 100%;
        }

        .item>.mask {
            position: absolute;
            border-radius: 50%;
            width: 50em;
            height: 50em;
            color: #333;
            box-shadow: inset 0 0 0 25em;
            transition: box-shadow 0.3s;
            pointer-events: none;
            top: -25em;
            left: -25em;
        }

        .title {
            position: absolute;
            text-transform: uppercase;
          
            color: #707070;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="item">
            <img src="./image/img1.jpg" alt="">
            <div class="mask"></div>
            <span class="title">Magic</span>
        </div>
        <div class="item">
            <img src="./image/img2.jpg" alt="">
            <div class="mask"></div>
            <span class="title">peculiar</span>
        </div>
        <div class="item">
            <img src="./image/img3.png" alt="">
            <div class="mask"></div>
            <span class="title">mystical</span>
        </div>
        <div class="item">
            <img src="./image/img4.jpg" alt="">
            <div class="mask"></div>
            <span class="title">Fantasy</span>
        </div>
    </div>
</body>

</html>